/*
 * trace_CmdEntry.h
 *
 *  Created on: 2012/08/03
 *      Author: guanxiaoying
 */

#ifndef TRACE_CMDENTRY_H_
#define TRACE_CMDENTRY_H_
/*********************************
  The starting point of trace.
  It should be translation-unit or function.
  Translation unit:
        add it by Tr_MainAddTuEntry
        kind: ENTRY_TU
        parameter: index
  Function:
        add it by Tr_CmdAddFunctionEntry
        kind  ENTRY_FUNC
        parameter index
  Entries can be cleared by Tr_CmdCleanEntry.
  The tracing is started by Tr_CmdTraceAllEntries.
  NOTICE: entries are managed by user.
*********************************/
typedef struct {
	BOOL (*clear)( VOID );
	BOOL (*alloc)( AST );
	AST  (*getMax)( VOID );
	ACCESS_U2_FIELD kind;
	ACCESS_IDX_FIELD parameter;
}CMDLISTENTRYACCESS;
extern const CMDLISTENTRYACCESS stCmdEntryAccess;

#endif /* TRACE_CMDENTRY_H_ */
